This notebook explores a CSV files that contains the position, speeds and other related information for planes in the Boston area over a period of 6 hours.
These data were collected by directly recording publicly available Automatic dependent surveillance — broadcast (ADS–B) transmissions from planes from a single location (hence the data should not be considered complete). The data can be found in https://github.com/glue-viz/glue-example-data/tree/master/Planes/.
For convenience we can use the require_data
function to
automatically download them here:
from glue_jupyter.data import require_data
require_data('Planes/boston_planes_6h.csv')
Let's start up glue:
import glue_jupyter as gj
app = gj.jglue()
and load in the data:
planes = app.load_data('boston_planes_6h.csv')
We can start off by making a 2D plot of the positions of the plane (the x/y values are in km offset):
scatter_viewer = app.scatter2d(x='x', y='y', data=planes)
Let's now make a histogram:
histogram_viewer = app.histogram1d(x='vertical_rate', data=planes)
Try clicking on the brush tool and selecting some of the high values of vertical rate. These are planes taking off. Now check where these are in the 2D scatter plot.
Let's have fun and take a look at what this looks like in 3D:
scatter_3d_viewer = app.scatter3d(x='x', y='y', z='altitude', data=planes)